


        var winnerSwiper = new Swiper('.winnerSwiper',{
            loop:true
        })

        function exclusiveActions(){
            var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
            $('main .headPic .box img')[0].style.transform = 'translateY(' + (scrollTop * 0.125) + 'px)';
            transformTwice($('main .tips .contn .block:nth-child(2)'),76,'translateY');
            transformTwice($('main .tips .contn .block:nth-child(3)'),46,'translateY');
            transformTwice($('main .tips .contn .block:nth-child(3) .horLine'),210,'translateX');
            for(var t = 0;t < $('.ttl').length;t++){
                transformTwice($(".ttl h2"),26,'translateY');
                transformTwice($('.ttl .desc'),12,'translateY');
            }
        }
        var cut;
        $(document).ready(function(){
            for(var r = 0;r < $('main .team .list .r').length;r++){
                $('main .team .list .r')[r].rInd = r;
                console.log(r);
            }
            $('main .team .list .r').click(function(){
                var self = false;
                cut = false;
                if($('main .team .list .r.clicked').length){
                    cut = true;
                    var index = $('main .team .list .r.clicked')[0].rInd;
                    index == $(this)[0].rInd && (self = true);
                    $('main .team .list .r.clicked').find('.box')[0].style.height = $('main .team .list .r.clicked').find('.box p')[0].offsetHeight + 'px';
                    $('main .team .list .r').removeClass('clicked');
                    setTimeout(function(){
                        $('main .team .list .r:eq(' + index + ')').find('.box').css('height','');
                    },10)
                    setTimeout(function(){
                        $('main .team .list .r:eq(' + index + ')').find('.box').css('display','');
                    },320)
                }
                    if(self) return false;
                    
                    $(this).find('.box').css('display','block');
                    var This = this;
                    setTimeout(function(){
                        $(This).addClass('clicked');
                        $(This).find('.box')[0].style.height = $(This).find('.box p')[0].offsetHeight + 'px';
                    },10)
                    setTimeout(function(){
                        if(cut) return false; 
                        $(This).find('.box')[0].style.height = 'auto';
                    },320)

                
            })

            watchWindowWidth = setInterval(function(){
                if(window.innerWidth >= 768 && winnerSwiper.params.spaceBetween != 0){
                    winnerSwiper.params.spaceBetween = 0;
                    winnerSwiper.update();
                }else if(window.innerWidth < 768 && winnerSwiper.params.spaceBetween != 15){
                    winnerSwiper.params.spaceBetween = 15;
                    winnerSwiper.update();
                }
                if(window.innerWidth != consultWidth){
                    consultWidth = window.innerWidth;
                }
            },10)

            $('main .video .contn .box').click(function(){
                $(this).addClass('active');
                if($(this).find('video')[0].paused){
                    $(this).addClass('playing');
                    $(this).find('video')[0].play()
                }else{
                    $(this).removeClass('playing');
                    $(this).find('video')[0].pause();
                }
            })
        })